package com.pengcheng.test;

import com.alibaba.fastjson2.JSONObject;
import io.netty.bootstrap.Bootstrap;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.*;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.SocketChannel;
import io.netty.channel.socket.nio.NioServerSocketChannel;
import io.netty.channel.socket.nio.NioSocketChannel;
import io.netty.handler.codec.bytes.ByteArrayDecoder;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.io.File;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@SpringBootApplication
@EnableScheduling
@EnableAsync
@Slf4j
public class MyApplication implements CommandLineRunner {
    public static void main(String[] args)
    {
        SpringApplication.run(MyApplication.class,args);
    }

    @Autowired
    private TestJob job;
    @Autowired
    private Common common;
    @Autowired
    private GeoUtil geoUtil;
    @Autowired
    private DsendUtil dsendUtil;
    @Autowired
    private CtUtil ctUtil;
    @Autowired
    private JsonUtil jsonUtil;
    @Override
    public void run(String... args) throws Exception {
        Map<String,Object> res=common.decode_old("681a68b35601020016c000000000001003000000000000002222102600dc16");
        log.info(JSONObject.toJSONString(res));
    }
}
